package com.itheima.array;

public class ArrayTest05 {
    /*
        实现数组的调换
    */
    public static void main(String[] args) {
        int[] arr = {11,22,33,44,55};

        int temp;
        temp = arr[0];
        arr[0] = arr[arr.length-1];
        arr[arr.length-1] = temp;

        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }


    }
}
